package com.cluster.platform.service;

import com.cluster.platform.common.api.CommonPage;
import com.cluster.platform.common.api.CommonResult;
import com.cluster.platform.model.UmsFocusInfo;

/**
 * 关注功能 上限5000
 */
public interface UmsFocusInfoService {

    /**
     * 新增关注
     */
    CommonResult<Object> addFocus(UmsFocusInfo umsFocusInfo);

    /**
     * 取消关注
     */
    CommonResult<Object> cancelFocus(String id);

    /**
     * 查询关注信息
     */
    CommonResult<Object> searchFocusList(UmsFocusInfo umsFocusInfo);

    /**
     * 分页查询
     */
    CommonResult<Object> searchFocusPage(UmsFocusInfo umsFocusInfo,Integer pageNum,Integer pageSize);

    /**
     * 查询已关注人数
     */
    Integer searchFocusNumber(String focusId);

    /**
     * 查询已被多少人关注
     */
    Integer searchBeFocusNumber(String userId);

}
